{include file="public/head" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('v_global')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_global')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_module')} {:lang('v_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{empty name="rs.id"}{:lang('v_add')}{else /}{:lang('v_edit')}{/empty} {:lang('v_module')}</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        {if config('app.isdisplay.module') eq 1}
                            <div class="w-100 pt-3 pb-2 bg-white rounded mb-3">
                                <div class="row">
                                    <div class="col-md-12">
                                        <a class="btn btn-default mb-2 mr-2" href="{:url('/module/index',['lang'=>$lang])}"><i class="fa fa-cubes"></i> {:lang('v_module')} {:lang('v_manage')}</a>
                                        <a class="btn btn-success mb-2" href="{:url('/module/edit',['lang'=>$lang])}"><i class="fa fa-plus-circle"></i> {:lang('v_add')} {:lang('v_module')}</a>
                                    </div>
                                </div>
                            </div>
                        {/if}
                        <div class="card card-outline card-success">
                            <div class="card-header"><i class="fas fa-edit mr-1"></i>{empty name="rs.id"}{:lang('v_add')}{else /}{:lang('v_edit')}{/empty} {:lang('v_module')}</div>
                            <div class="card-body">
                                <form name="form_edit" id="form_edit" method="post" action="{:url('/module/edit',['lang'=>$lang])}">
                                    <input type="hidden" name="id" value="{$rs.id}">
                                    <input type="hidden" name="lang" value="{$lang}">
                                    <input type="hidden" name="initial_hits">
                                    <div {if config('app.isdisplay.module') eq 0}class="d-none"{/if}>
                                        <div class="row form-group">
                                            <div class="col-md-3 col-form-label text-right">{:lang('v_module')}</div>
                                            <div class="col-md-4">
                                                {notempty name="rs.id"}
                                                    <input name="module" type="text" class="form-control" value="{$rs.module}" readonly="readonly" />
                                                {else /}
                                                    <select name="module" id="module" class="form-control">
                                                        <option value="product">{:lang('v_product')} {:lang('v_module')}</option>
                                                        <option value="news">{:lang('v_news')} {:lang('v_module')}</option>
                                                        <option value="about">{:lang('v_about')} {:lang('v_module')}</option>
                                                        <option value="project">{:lang('v_project')} {:lang('v_module')}</option>
                                                        <option value="down">{:lang('v_down')} {:lang('v_module')}</option>
                                                        <option value="video">{:lang('v_video')} {:lang('v_module')}</option>
                                                    </select>
                                                {/notempty}
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-3 col-form-label text-right text-danger">{:lang('v_module_name')} *</div>
                                            <div class="col-md-4">
                                                <input type="text" class="form-control" name="title" {empty name="rs.id"}id="title" onblur="strtopy(0,1);"{/empty} value="{$rs.title}" placeholder="{:lang('v_module_name_tips')}" />
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-3 col-form-label text-right text-danger">{:lang('v_module_mulu')} *</div>
                                            <div class="col-md-4">
                                                <input type="text" class="form-control pinyin" name="tabledir" value="{$rs.tabledir}" placeholder="{:lang('v_module_mulu_tips')}" {notempty name="rs.id"}readonly="readonly"{/notempty} />
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-3 col-form-label text-right">{:lang('v_sequence')}</div>
                                            <div class="col-md-4">
                                                <input type="text" class="form-control" name="sequence" value="{empty name="rs.sequence"}0{else /}{$rs.sequence}{/empty}" onKeydown="if(event.keyCode==13)event.returnValue=false" onChange="if(/\D/.test(this.value)){alert('{:lang('v_require_number')}！');this.value='0';}" />
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-3 text-right">{:lang('v_enable_ornot')}</div>
                                            <div class="col-md-9">
                                                <label class="form-check form-check-inline">
                                                    <input type="radio" name="disabled" value="1"{if $rs.disabled eq 1 or empty($rs.disabled)} checked="checked"{/if} class="form-check-input" /> {:lang('v_enable')}
                                                </label>
                                                <label class="form-check form-check-inline">
                                                    <input type="radio" name="disabled" value="0"{eq name="rs.disabled" value="0"} checked="checked"{/eq} class="form-check-input" />{:lang('v_disable')}
                                                </label>
                                            </div>
                                        </div>
                                        <div class="row form-group" id="sort_style">
                                            <div class="col-md-3 text-right">{:lang('v_sort_method')}</div>
                                            <div class="col-md-9">
                                                <label class="form-check form-check-inline">
                                                    <input type="radio" name="sort_style" value="1"{if $rs.sort_style eq 1 or empty($rs.sort_style)} checked="checked"{/if} class="form-check-input" /> {:lang('v_drop_down')}
                                                </label>
                                                <label class="form-check form-check-inline">
                                                    <input type="radio" name="sort_style" value="2"{eq name="rs.sort_style" value="2"} checked="checked"{/eq} class="form-check-input" />{:lang('v_open_window')}（分类较多时建议）
                                                </label>
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-3 col-form-label text-right">{:lang('v_listnum')}</div>
                                            <div class="col-md-4">
                                                <input type="text" class="form-control" name="listnum" value="{empty name="rs.listnum"}16{else/}{$rs.listnum}{/empty}" onKeydown="if(event.keyCode==13)event.returnValue=false" onChange="if(/\D/.test(this.value)){alert('{:lang('v_require_number')}！');this.value='16';}" />
                                            </div>
                                        </div>
                                        <div class="row form-group text-danger">
                                            <div class="col-md-3 col-form-label text-right">{:lang('v_urlroute')} *</div>
                                            <div class="col-md-4">
                                                <input type="text" class="form-control pinyin" name="urlroute" placeholder="{:lang('v_urlroute_tips')}" value="{$rs.urlroute}" />{:lang('v_route_tips')}
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-3 col-form-label text-right">{:lang('v_config_setting')}</div>
                                            <div class="col-md-9">
                                                <div class="border rounded p-2">
                                                    {php}$isdisplay_array=explode(',',$rs['isdisplay']);{/php}
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="attribute" {if in_array('attribute',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_attribute')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="area" {if in_array('area',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_area')}
                                                    </label>
                                                    <label class="mr-4 mb-1 {if $rs.module eq 'about'}d-none{/if}">
                                                        <input type="checkbox" name="isdisplay[]" value="title_color" {if in_array('title_color',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_title')} {:lang('v_color')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="onecontent" {if in_array('onecontent',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_one_content')}
                                                    </label>
                                                    <label class="mr-4 mb-1 {if !empty($rs.id) and in_array($rs['module'],array('news','about','down','video'))}d-none{/if}" id="twocontents">
                                                        <input type="checkbox" name="isdisplay[]" value="twocontents" {if in_array('twocontents',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_two_contents')}
                                                    </label>
                                                    <label class="mr-4 mb-1 {if !empty($rs.id) and in_array($rs['module'],array('news','about','down','video'))}d-none{/if}" id="morecontents">
                                                        <input type="checkbox" name="isdisplay[]" value="morecontents" {if in_array('morecontents',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_morecontents')}
                                                    </label>
                                                    <label class="mr-4 mb-1 {if !empty($rs.id) and in_array($rs['module'],array('down','video'))}d-none{/if}" id="thumb">
                                                        <input type="checkbox" name="isdisplay[]" value="thumb" {if in_array('thumb',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_single_picture_upload')}
                                                    </label>
                                                    <label class="mr-4 mb-1 {if !empty($rs.id) and in_array($rs['module'],array('video'))}d-none{/if}" id="thumb_simple">
                                                        <input type="checkbox" name="isdisplay[]" value="thumb_simple" {if in_array('thumb_simple',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_simple')} {:lang('v_single_picture_upload')}
                                                    </label>
                                                    <label class="mr-4 mb-1 {if !empty($rs.id) and in_array($rs['module'],array('video'))}d-none{/if}" id="fileurl">
                                                        <input type="checkbox" name="isdisplay[]" value="fileurl" {if in_array('fileurl',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_single_file_upload')}
                                                    </label>
                                                    <label class="mr-4 mb-1 {if !empty($rs.id) and in_array($rs['module'],array('video'))}d-none{/if}" id="file_simple">
                                                        <input type="checkbox" name="isdisplay[]" value="file_simple" {if in_array('file_simple',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_simple')} {:lang('v_single_file_upload')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="price" {if in_array('price',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_price')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="hits" {if in_array('hits',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_click')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="client" {if in_array('client',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_client')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="tags" {if in_array('tags',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_label')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="addtime" {if in_array('addtime',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_adddate')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="linkurl" {if in_array('linkurl',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_jump_url')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="sort" {if in_array('sort',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_sort')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="sortimg" {if in_array('sortimg',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_sort')} {:lang('v_img')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="brand" {if in_array('brand',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        是否启用品牌
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="addinfo" {if in_array('addinfo',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_enable_ornot')} {:lang('v_addinfo')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="leftdisplay" {if in_array('leftdisplay',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_leftdisplay')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="keyword" {if in_array('keyword',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_keywordlink')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="deletefile" {if in_array('deletefile',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_file_delete_ornot')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="index_template" {if in_array('index_template',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}
                                                        >{:lang('v_index_template_ornot')}
                                                    </label>
                                                    <label class="mr-4 mb-1">
                                                        <input type="checkbox" name="isdisplay[]" value="view_template" {if in_array('view_template',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}>
                                                        {:lang('v_view_template_ornot')}
                                                    </label>
                                                    <label class="mr-4 {if empty($rs.id) or $rs.module neq 'about'}d-none{/if}" id="parentpage">
                                                        <input type="checkbox" name="isdisplay[]" value="parentpage" {if in_array('parentpage',$isdisplay_array)}checked="checked"{/if}> {:lang('v_enable_ornot')} {:lang('v_parent_page')}
                                                    </label>
                                                    <label class="mr-4">
                                                        <input type="checkbox" name="isdisplay[]" value="urlroute" {if in_array('urlroute',$isdisplay_array)}checked="checked"{/if}> {:lang('v_forced_urlroute')}
                                                    </label>
                                                    <label class="mr-4 {if (!empty($rs.id) and !in_array($rs['tabledir'],array('product'))) or config('app.other.system_type') eq 'company'}d-none{/if}" id="shop_spec">
                                                        <input type="checkbox" name="isdisplay[]" value="shop_spec" {if (in_array('shop_spec',$isdisplay_array) or empty($rs.id)) and config('app.other.system_type') neq 'company'}checked="checked"{/if}> {$Think.lang.v_enable_ornot} {$Think.lang.v_spec}
                                                    </label>
                                                    <label class="mr-4 {if !empty($rs.id) and !in_array($rs['tabledir'],array('product'))}d-none{/if}" id="note">
                                                        <input type="checkbox" name="isdisplay[]" value="note" {if in_array('note',$isdisplay_array) or empty($rs.id)}checked="checked"{/if}> {:lang('v_enable_ornot')} {:lang('v_note')}
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-3 col-form-label text-right">{:lang('v_rand_hits')}</div>
                                            <div class="col-md-5">
                                                <input type="text" name="min_hits" value="{$min_hits}" class="input" /> - <input type="text" name="max_hits" value="{$max_hits}" class="input" />
                                            </div>
                                        </div>
                                        <div class="row form-group {if !empty($rs.id) and ($rs.module eq 'news' or $rs.module eq 'about')}d-none{/if}">
                                            <div class="col-md-3 col-form-label text-right">{:lang('v_initial_stock')}</div>
                                            <div class="col-md-5">
                                                <input type="text" class="form-control" name="initial_stock" value="{empty name="rs.id"}0{else /}{$rs.initial_stock}{/empty}" placeholder="{:lang('v_initial_stock')}" />
                                            </div>
                                        </div>
                                        <div class="row form-group {if !empty($rs.id) and ($rs.module eq 'news' or $rs.module eq 'about')}d-none{/if}">
                                            <div class="col-md-3 text-right">{:lang('v_stock_unit')}</div>
                                            <div class="col-md-5">
                                                <textarea name="stockunit" rows="5" class="form-control" placeholder="{:lang('v_oneline_onevalue')}">{$rs.stockunit}</textarea>
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-3 text-right">{:lang('v_cannot_delete_sortid')}</div>
                                            <div class="col-md-5">
                                                <textarea name="no_delete_sortid" rows="2" class="form-control" placeholder="{:lang('v_cannot_delete_sortid')}">{$rs.no_delete_sortid}</textarea>
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-3 col-form-label text-right">{:lang('v_cannot_deleteid')}</div>
                                            <div class="col-md-5">
                                                <textarea name="no_deleteid" rows="2" class="form-control" placeholder="{:lang('v_cannot_deleteid')}">{$rs.no_deleteid}</textarea>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row form-group {if !in_array('tags',$isdisplay_array)}d-none{/if}">
                                        <div class="col-md-3 text-right">{:lang('v_label')}</div>
                                        <div class="col-md-5">
                                            <textarea name="tags" rows="4" class="form-control" placeholder="{:lang('v_oneline_onevalue')}">{$rs.tags}</textarea>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_seo')} {:lang('v_title')}</div>
                                        <div class="col-md-5">
                                            <input type="text" class="form-control" name="seotitle" value="{$rs.seotitle}" {if config('lang.default_lang') eq $lang}placeholder="{:lang('v_city_title_tips')}-{:lang('v_city_company_tips')}"{/if} />
                                            {if config('lang.default_lang') eq $lang}<span class="text-muted">{:lang('v_city_tips')}</span>{/if}
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_keyword')}</div>
                                        <div class="col-md-5">
                                            <input type="text" class="form-control" name="keyword" value="{$rs.keyword}" {if config('lang.default_lang') eq $lang}placeholder="{:lang('v_city_keyword_tips')}"{/if} />
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 text-right">{:lang('v_description')}</div>
                                        <div class="col-md-5">
                                            <textarea name="description" rows="4" class="form-control" {if config('lang.default_lang') eq $lang}placeholder="{:lang('v_city_description_tips')}"{/if}>{$rs.description}</textarea>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="offset-md-3 col-md-9 mb-4">
                                            {if is_file(app()->getRootPath().'.env')}
                                                <button type="submit" class="btn btn-success mr-4"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                                            {else /}
                                                <button type="button" class="do_ajax btn btn-success mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/module/edit',['lang'=>$lang])}','{:url('/module/index',['lang'=>$lang])}');"><i class="fas fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                                            {/if}
                                            <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);"><i class="fa fa-angle-double-left mr-1"></i>{:lang('v_goback')}</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
<!-- 汉字转拼音 开始 -->
<script type="text/javascript">
// cut_f从第几个字符开始截取，cut_num截取多少个字符
function strtopy(cut_f = 0,cut_num = 1){
    var title = $("#title").val();
    $.post("{:url('/base/pinyin',['lang'=>$lang,'from'=>'module'])}",{title:title},function(data){
        $('.pinyin').val(data);
        $('.sort_pinyin').val(data.substr(cut_f,cut_num));
    });
}
</script>
<!-- 汉字转拼音 结束 -->
<script type="text/javascript">
//后台分类选择方式
$('#module').on('click',function(){
    $('#sort_style').removeClass('d-none');
    $('#shop_spec').removeClass('d-none');
    $('#parentpage').removeClass('d-none');
    $('#twocontents').removeClass('d-none');
    $('#morecontents').removeClass('d-none');
    $('#thumb').removeClass('d-none');
    $('#thumb_simple').removeClass('d-none');
    $('#fileurl').removeClass('d-none');
    $('#file_simple').removeClass('d-none');
    $('#note').removeClass('d-none');

    var val = $('#module option:selected').val();
    switch (val) {
        case 'product':
            $('#parentpage').addClass('d-none');
            break;
        case 'news':
            $('#sort_style').addClass('d-none');
            $('#shop_spec').addClass('d-none');
            $('#parentpage').addClass('d-none');
            $('#twocontents').addClass('d-none');
            $('#morecontents').addClass('d-none');
            $('#note').addClass('d-none');
            break;
        case 'about':
            $('#sort_style').addClass('d-none');
            $('#shop_spec').addClass('d-none');
            $('#twocontents').addClass('d-none');
            $('#morecontents').addClass('d-none');
            $('#note').addClass('d-none');
            break;
        case 'project':
            $('#sort_style').addClass('d-none');
            $('#shop_spec').addClass('d-none');
            $('#parentpage').addClass('d-none');
            $('#note').addClass('d-none');
            break;
        case 'down':
            $('#sort_style').addClass('d-none');
            $('#shop_spec').addClass('d-none');
            $('#parentpage').addClass('d-none');
            $('#twocontents').addClass('d-none');
            $('#morecontents').addClass('d-none');
            $('#thumb').addClass('d-none');
            $('#note').addClass('d-none');
            break;
        case 'video':
            $('#sort_style').addClass('d-none');
            $('#shop_spec').addClass('d-none');
            $('#parentpage').addClass('d-none');
            $('#twocontents').addClass('d-none');
            $('#morecontents').addClass('d-none');
            $('#thumb').addClass('d-none');
            $('#thumb_simple').addClass('d-none');
            $('#fileurl').addClass('d-none');
            $('#file_simple').addClass('d-none');
            $('#note').addClass('d-none');
            break;
    }
});
</script>
</body>
</html>